#include "../download/download.h"
#include "../lib/gequations/gequation.h"

int main(int argc, char * argv[])
{
	char * filename = argv[1];
	DWORD fileSize = atoi(argv[2]);
	DWORD block_size = atoi(argv[3]);
	char * server_url = argv[4];
	char * peer_url = NULL;

	if (argc>5) {
		peer_url = argv[5];
	}
	init_gequation();
	download(filename, fileSize, block_size, server_url, peer_url);

	return 0;
}
